﻿using AnesSystem.Models;
using AnesSystem.Services;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AnesSystem.ViewModels
{
    class ConfigEventTypesDataGridViewModel : BaseViewModel<ConfigEventTypesDataGridViewModel>
    {
        #region Variables

        private ObservableCollection<ConfigEventTypesModel> _configEventTypesModel = new ObservableCollection<ConfigEventTypesModel>();

        #endregion

        #region Constructor

        public ConfigEventTypesDataGridViewModel()
        {
            initConfigEvenTypesModel();

        }

        #endregion

        #region Properties

        public ObservableCollection<ConfigEventTypesModel> ConfigEventTypesModel
        {
            get
            {
                return _configEventTypesModel;
            }
            set
            {
                _configEventTypesModel = value;
                RaisePropertyChanged("ConfigEventTypesModel");
            }
        }

        #endregion

        #region Event

        #endregion

        #region Private Methods
        private void initConfigEvenTypesModel()
        {
            IEnumerable<ConfigEventTypesModel> list = ConfigEventTypesModelService.Instance.FindAll();
            foreach (var item in list)
            {
                _configEventTypesModel.Add(item);
               
            }
        }

       

        #endregion

        #region Public/Protected Methods


        #endregion

        #region EventHandlers

        #endregion

        #region Command

        #region ChangeDoctorCommand

        #endregion

        #region OpenPopupCommand

        #endregion
        #endregion
    }
}
